<template>
  <div class="comment-bd">
      <detail-title icom="icon-haopin" title="评论关键词"></detail-title>
      <div class="comment-keyword">
          <span 
          class="keyword"
          v-for="(item, index) of commentKeyword"
          :key="index"
          >{{item}}</span>
      </div>
  </div>
</template>

<script>
import DetailTitle from './Title.vue'
export default {
  name: 'DetailCommentKeyword',
  components: {
      DetailTitle
  },
  props: {
      title: {
          type: String,
          default () {
              return '加载中...'
          }
      },
      commentKeyword: {
          type: Array,
          default () {
              return []
          }
      }
  }
}
</script>

<style lang="scss" scoped>
@import '~styles/variables.scss';
@import '~styles/mixins.scss';
.comment-bd {
    @include flex-column;
    margin-top: .1rem;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    box-sizing: border-box;

    .comment-keyword {
        @include flex-row;
        flex-wrap: wrap;
        padding: .1rem .15rem;
        font-size: .14rem;
        line-height: .18rem;
        box-sizing: border-box;

        .keyword {
            @include vh-center;
            height: .25rem;
            padding: 0 .05rem;
        }
    }
}
</style>